import { http } from 'utils'

export function getOrderConfirmation({ addressId, skuId, count }) {
  return http
    .post('order/ready', { addressId, skuId, count })
    .then(res => res)
}

export function createOrder({ addressId, payChannel }) {
  return http
    .post('order/create', { addressId, payChannel })
    .then(res => res)
}

export function validationPay({ payNo, payChannel, tradeEmail, tradeNo }) {
  return http
    .post('pay/validationPay', { payNo, payChannel, tradeEmail, tradeNo })
    .then(res => res)
}

